package com.mdinfo.base.config.bean;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2017/12/5.
 */
@Data
@Component
@ConfigurationProperties(prefix = "redis")
@PropertySource("classpath:redis.properties")
public class RedisBean {
    private String host;
    private Integer port;
    private String password;
    private Integer database;
    private Integer MaxTotal;
    private Integer maxIdle;
    private Integer maxWait;
    private Integer minIdle;
    private Integer timeout;
}
